import http from "@/api";

export const getTopicListApi = async (data) =>
  await http.post("topic/web/page/list", data);

export const insertTopicApi = async (data) =>
  await http.post("topic/web/insert", data);

export const deleteTopicApi = async (data) =>
  await http.post("topic/web/delete", data);

export const getTopicDetailApi = async (id) =>
  await http.get(`topic/web/get/${id}`);

export const updateTopicApi = async (data) =>
  await http.post("topic/web/update", data);
